package com.dm.common.enums;

import lombok.Getter;

/**
 * @author hqw521@qq.com
 * @date 2018/11/14 11:34
 */
@Getter
public enum ResponseCode {
    /**
     * 成功
     */
    SUCCESS(1, "SUCCESS"),
    /**
     * 失败
     */
    ERROR(0, "ERROR");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
